package cn.hk.service;

import cn.hk.mapper.CheckMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CheckService {
    @Autowired(required = false)
    private CheckMapper checkMapper;
    public boolean checkUsername(String userName) {
        int exist= checkMapper.selectCountByUname(userName);
        return exist==0;
    }
}
